home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / pmake / RCS / makedepend.mk,v < prev    next >
Encoding:
Text File  |  1991-11-20  |  1.6 KB  |  85 lines

  1. head     1.3;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @@;
  7.  
  8.  
  9. 1.3
  10. date     91.11.19.18.26.04;  author kupfer;  state Exp;
  11. branches ;
  12. next     1.2;
  13.  
  14. 1.2
  15. date     91.11.06.18.32.46;  author kupfer;  state Exp;
  16. branches ;
  17. next     1.1;
  18.  
  19. 1.1
  20. date     88.03.24.19.47.30;  author deboor;  state Exp;
  21. branches ;
  22. next     ;
  23.  
  24.  
  25. desc
  26. @Makefile to make using makedepend easier
  27. @
  28.  
  29.  
  30. 1.3
  31. log
  32. @makedepend doesn't like -U, so don't pass it in from CFLAGS.
  33. @
  34. text
  35. @#
  36. # Makefile of rules for creating dependencies using the 'makedepend'
  37. # program. DEPFILE contains the name of the file wherein the dependencies
  38. # should be placed. This defaults to 'dependencies.mk' in the local directory.
  39. # It may, however, be changed to 'Makefile' without harm.
  40. #
  41. # If you want the dependencies to include the full pathname of each include
  42. # file, you must specify the '-p' flag in the DEPFLAGS variable.
  43. #
  44. # If the SRCS variable is defined, the 'depend' target will be set up
  45. # to create dependencies for all files in that variable.
  46. #
  47. # The MAKEDEPEND rule will pass all -I and -D flags given in the CFLAGS
  48. # variable to makedepend. Usage is like this:
  49. #
  50. # depend : $(LIBSRCS) $(PROGSRC) MAKEDEPEND
  51. DEPFLAGS    ?=
  52.  
  53. #if defined(SRCS) && !defined(NODEPEND)
  54. depend        : $(SRCS) MAKEDEPEND .NOTMAIN
  55. #endif
  56.  
  57. DEPFILE        ?= dependencies.mk
  58.  
  59. MAKEDEPEND    : .USE
  60.     makedepend $(CFLAGS:M-[ID]*) $(DEPFLAGS) -f $(DEPFILE) $(.ALLSRC)
  61. @
  62.  
  63.  
  64. 1.2
  65. log
  66. @Pass -U flags to makedepend.
  67. @
  68. text
  69. @d27 1
  70. a27 1
  71.     makedepend $(CFLAGS:M-[IDU]*) $(DEPFLAGS) -f $(DEPFILE) $(.ALLSRC)
  72. @
  73.  
  74.  
  75. 1.1
  76. log
  77. @Initial revision
  78. @
  79. text
  80. @d27 1
  81. a27 1
  82.     makedepend $(CFLAGS:M-[ID]*) $(DEPFLAGS) -f $(DEPFILE) $(.ALLSRC)
  83. @
  84.